<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="urunpopup.aspx.cs" Inherits="OnlineAnadolu.urunpopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" BackColor="White"
            BorderColor="#999999" BorderStyle="None" BorderWidth="1px" Caption="Urun Detay"
            CellPadding="3" DataSourceID="SqlDataSource1" GridLines="Vertical" Height="50px"
            Width="412px">
            <Fields>
                <asp:BoundField DataField="user_name" HeaderText="Kullanici Adi" SortExpression="user_name">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="name" HeaderText="Urun Adi" SortExpression="name">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="description" HeaderText="Tanim" SortExpression="description">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="price" HeaderText="Fiyat" SortExpression="price">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="productdate" HeaderText="Urun Konus Tarihi" SortExpression="productdate">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="deadline" HeaderText="Son Tarih" SortExpression="deadline">
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
            </Fields>
            <FooterTemplate>
                <asp:Image ID="Image1" runat="server" Height="400px" ImageUrl='<%# Eval("productimage") %>'
                    Width="400px" />
            </FooterTemplate>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <EditRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="Gainsboro" />
        </asp:DetailsView>
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource2">
        </asp:GridView>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Onayla" />
        <asp:Button ID="bt_Onaylama" runat="server" OnClick="bt_Onaylama_Click" Text="Onaylama" />&nbsp;<br />
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>">
        </asp:SqlDataSource>
        &nbsp;
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
            SelectCommand="SELECT * FROM [sendmessage]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
            SelectCommand="SELECT productimage.productimage, users.user_name, products.name, products.description, products.price, products.productdate, products.deadline FROM products INNER JOIN productimage ON products.imageid = productimage.productimageid INNER JOIN users ON products.userid = users.enduserid WHERE (products.productid = @a)">
            <SelectParameters>
                <asp:SessionParameter Name="a" SessionField="idproduct" />
            </SelectParameters>
        </asp:SqlDataSource>
    </form>
</body>
</html>
